package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

public class CpcMemberInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 党员记录编号 */
    private String id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String realName;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idNumber;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String userPhone;

    /** 现居住地 */
    @Excel(name = "现居住地")
    private String userAddress;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 年龄 */
    @Excel(name = "年龄")
    private Integer age;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /** 民族 */
    @Excel(name = "民族")
    private String nationality;

    /** 入党日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入党日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date partyDate;

    /** 籍贯 */
    @Excel(name = "籍贯")
    private String nativeAddress;

    /** 备注信息 */
    @Excel(name = "备注信息")
    private String information;

    /** 记录创建者 */
    @Excel(name = "记录创建者")
    private String creater;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date syncTime;

    /** 社区id */
    @Excel(name = "社区id")
    private Integer communityId;

    public void InitFromCpcMember(CpcMember cpcMember) {
//        CpcMemberInfo cpcMemberInfo = new CpcMemberInfo();
        this.id = cpcMember.getId();
        this.userId = cpcMember.getUserId();
        this.realName = cpcMember.getUserName();
        this.idNumber = cpcMember.getIdNumber();
        this.userPhone = cpcMember.getUserPhone();
        this.userAddress = cpcMember.getUserAddress();
        this.gender = cpcMember.getGender();
        this.age = cpcMember.getAge();
        this.birthDate = cpcMember.getBirthDate();
        this.partyDate = cpcMember.getPartyDate();
        this.nationality = cpcMember.getNationality();
        this.nativeAddress = cpcMember.getNativeAddress();
        this.information = cpcMember.getInformation();
        this.creater = cpcMember.getCreater();
        this.syncTime = cpcMember.getSyncTime();
        this.communityId = cpcMember.getCommunityId();
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public String getNationality() {
        return nationality;
    }

    public void setNationality(String nationality) {
        this.nationality = nationality;
    }

    public Date getPartyDate() {
        return partyDate;
    }

    public void setPartyDate(Date partyDate) {
        this.partyDate = partyDate;
    }

    public String getNativeAddress() {
        return nativeAddress;
    }

    public void setNativeAddress(String nativeAddress) {
        this.nativeAddress = nativeAddress;
    }

    public String getInformation() {
        return information;
    }

    public void setInformation(String information) {
        this.information = information;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public Date getSyncTime() {
        return syncTime;
    }

    public void setSyncTime(Date syncTime) {
        this.syncTime = syncTime;
    }

    public Integer getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Integer communityId) {
        this.communityId = communityId;
    }

    @Override
    public String toString() {
        return "CpcMemberInfo{" +
                "id='" + id + '\'' +
                ", userId=" + userId +
                ", userName=" + userName +
                ", nickName=" + nickName +
                ", realName='" + realName + '\'' +
                ", idNumber='" + idNumber + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", userAddress='" + userAddress + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", birthDate=" + birthDate +
                ", nationality='" + nationality + '\'' +
                ", partyDate=" + partyDate +
                ", nativeAddress='" + nativeAddress + '\'' +
                ", information='" + information + '\'' +
                ", creater='" + creater + '\'' +
                ", syncTime=" + syncTime +
                ", communityId=" + communityId +
                '}';
    }
}
